package com.example.firstjavamqtt.service.log;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.firstjavamqtt.model.log.LedLog;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;

public interface LedLogService extends IService<LedLog> {

    //保存日志
    void saveLedLog(String string, HttpServletRequest request);
    //根据id删除日志
    void deleteLedLogById(int id);
    //根据设备号删除日志
    void deleteLedLogByDeviceId(String deviceId);
    //根据批量id删除
    void deleteLedLogByBatchId(ArrayList<Integer> batchId);
    //获取所有Led日志的分页列表
    Page<LedLog> getAllLedLog(int pageNum, int limit);
}
